package com.neuedu.javase.gui;

import javax.swing.*;
import java.awt.*;

/**
 * @auth 金山老师
 * title:   书籍代码
 * creatime: 2022-10-06 11:42
 * 描述 :
 */
public class MyPanelBak extends JPanel {
    public MyPanelBak() {

        FlowLayout ly = (FlowLayout) this.getLayout();
        ly.setAlignment(FlowLayout.LEFT);//靠左
        System.out.println("ly = " + ly);

        this.add(new Button("btn1 "));
        this.add(new Button("btn2 "));
        this.add(new Button("btn3 "));
        this.add(new Button("btn4 "));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));
        this.add(new Button("btn5"));

    }
}
